package br.upe.portlet.estagio.service;


/**
 * <a href="SistemaLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class provides static methods for the
 * <code>br.upe.portlet.estagio.service.SistemaLocalService</code>
 * bean. The static methods of this class calls the same methods of the bean
 * instance. It's convenient to be able to just write one line to call a method
 * on a bean instead of writing a lookup call and a method call.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see br.upe.portlet.estagio.service.SistemaLocalService
 *
 */
public class SistemaLocalServiceUtil {
    private static SistemaLocalService _service;

    public static void criarComunidade() {
        getService().criarComunidade();
    }

    public static boolean isAluno(java.lang.String matricula)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService().isAluno(matricula);
    }

    public static boolean isProfessor(java.lang.String matricula)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService().isProfessor(matricula);
    }

    public static boolean isProfessor(com.liferay.portal.model.User user)
        throws com.liferay.portal.SystemException {
        return getService().isProfessor(user);
    }

    public static boolean isAluno(com.liferay.portal.model.User user)
        throws com.liferay.portal.SystemException {
        return getService().isAluno(user);
    }

    public static boolean isProfessor(long userId)
        throws com.liferay.portal.SystemException {
        return getService().isProfessor(userId);
    }

    public static boolean isAluno(long userId)
        throws com.liferay.portal.SystemException {
        return getService().isAluno(userId);
    }

    public static SistemaLocalService getService() {
        if (_service == null) {
            throw new RuntimeException("SistemaLocalService is not set");
        }

        return _service;
    }

    public void setService(SistemaLocalService service) {
        _service = service;
    }
}
